Showing posts with label Tutorial php. Show all posts
Showing posts with label Tutorial php. Show all posts

Laravel is a newest php framework. This is official website of laravel, laravel.com. Although new, many programmers are already using this framework. This framework has been using full php5.

Good framework is a framework that is equipped with documentation and has a forum. Laravel already have both of those requirements.

Download how to build website using laravel framework below:

1. Laravel 4 introduction.
2. Laravel testing decode sample. For full version you can buy it here

Codeigniter is a the best framework php, i like use this framework because its simple and easy to learn. Here i want to share 6 ebook codeigniter tutorial guide, you can get it for free.

In this ebook, you ca learn about introduction about codeigniter, Configuration, active record, create library, and more example application.

Download ebook codeigniter from link below:

1. Introduction to codeigniter ebook.
2. Codeigniter and MVC ebook.
3. Codeigniter professional development ebook.
4. Codeigniter user guide.
5. Codeigniter Sample ebook.
6. Codeigniter ebook.
7. Codeigniter Guide for beginner

Here i wan t to share about language variable variable. You can visit complate tutorial here.

What does that mean $this->{$var}?

This is example how to use $this->4{$var}

$this->a = "hello";
$this->b = "hi";
$this->val = "howdy";

$val = "a";
echo $this->{$val}; // outputs "hello"

$val = "b";
echo $this->{$val}; // outputs "hi"

echo $this->val; // outputs "howdy"

echo $this->{"val"}; // also outputs "howdy"
Working example: http://3v4l.org/QNds9
This of course is working within a class context. You can use variable variables in a local context just as easily like this:
$a = "hello";
$b = "hi";

$val = "a";
echo $$val; // outputs "hello"

$val = "b";
echo $$val; // outputs "hi"
Working example: http://3v4l.org/n16sk.

src: http://bit.ly/14238Mr

In this tutorial i want to share how to make and use template in codeigniter, this is just basic and very sample. Ok, this more steps to create it.

1. Setting your autoload.php file like this (this file located in folder application/config/autoload.php)

$autoload['helper'] = array('url');

Paging is very important if we have more data in database that will display in web, because with paging will make website loading will be faster. Here i will sharing about how to make a paging style in codeigniter. below step by step to make it:

1. In your view, add div class pagination like this
  

The following are some point which i will present in this tutorial. 1. how to allowed file types 2. location file (path) 3. use mktime() function, so the file was uploaded to be unique. 

Here a php script to upload file to database using codeigniter:

In the previous tutorial, i have been posted about how to export data from mysql database to excel file using phpExcel. Now i want to share how to import data from excel to mysql database using php (PhpExcel Library). This code very useful if we have more data in excel file, because we have save more time to input it to database.

PHPExcel is a PHP Library that allows us to make a report with easy. By using PHPExcel, we can set the coloumn width, row hight, text position, making freeze panes, set the style with ease. In this post i will  combine PHPExcel and Codeigniter.

Here step by step to make a report using PHPExcel and Codeigniter:

In the previous article,i have been posted about how to merger pdf file using pdfmerger, in this session i will sharing   how to merger file docx using php,especially using tbszip php library. So, before we start create program, we must download tbszip library here.

This is my first time, i update this blog, after a long time not update it. In this time, i will try to share how to merger pdf using php script especially using PDFMerger library.

A few days ago I made an application using php, I create a php application by using xampp version 1.7.2 and the operating system that i used is windows xp. when I run it there are no problem. Then there is a problem when I run my application on windows 7. My first thought was maybe xampp version that does not compatible with windows 7, finally I download the latest version of xampp on this website. Then I tried to run the php application, the results of the application still errors, there are several databases that can not walk.

After that I searched the internet, it causes a php tag that I did not write the full. Finally I got the solution by enabling the short_open_tag php.

The following short to enable the php open tag.

1. xampp folder -> php -> and seach the file php.ini
2. Search this sript
short_open_tag = off

3. then replace it with on.